﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TA.Turbo.Controls
{
	/// <summary>
	/// Provides functionality of a list control that allows selecting a single item only.
	/// </summary>
	public interface ISingleValueListControl : IListControl
	{
		/// <summary>
		/// When implemented, gets or sets the selected item.
		/// </summary>
		/// <remarks>
		/// This will only work if the Items collection is populated. One way to ensure this is to include "Items" in the control reference's properties list.
		/// </remarks>
		ListItem SelectedItem { get; set; }
		/// <summary>
		/// When implemented, gets or sets the index of the selected item.
		/// </summary>
		int SelectedIndex { get; set; }
	}
}
